/*    */ package com.thtfpc.stroke.screening.util;

 import java.util.Random;


 public class RandomUtil
{
   public static int getRandomByRange(int min, int max) {
     Random random = new Random();
     int s = random.nextInt(max) % (max - min + 1) + min;
     return s;
  }
  public static int getRandom(int max) {
     Random random = new Random();
    int s = random.nextInt(max);
    return s;
   }

   public static int getOneOrZero (){
       return new java.util.Random().nextBoolean() ? 1 : 0;
   }

   public   static void main(String args[]){
       for(int i=0;i<100000;i++){
           System.out.println(getOneOrZero());
       }

   }
 }

